<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('订单详情')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-order-edit" th:object="${bizOrder}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">订单号：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{orderNo}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单类型：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('orderType',bizOrder.type)}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">客户ID：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{customerId}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户账号：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{customerAccount}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户手机号：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{customerPhone}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">设备ID：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{deviceId}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">设备编号：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{deviceSn}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">设备折扣(%)：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{deviceDiscount}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">场地ID：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{siteId}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">场地名称：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{siteName}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">场地位置：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{sitePosition}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">购买完成时间：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${#dates.format(bizOrder.successTime, 'yyyy-mm-dd HH:mm:ss')}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">优惠券ID：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{couponId}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">优惠券标题：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{couponTitle}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">优惠金额：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{couponAmount}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付交易号：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{tranNo}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付方式：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('orderPayMethod',bizOrder.payType)}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付金额：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{payAmount}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付时间：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${#dates.format(bizOrder.payTime, 'yyyy-mm-dd HH:mm:ss')}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单金额：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{amount}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电费数：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{num}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否已分成：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('yesOrNo',bizOrder.shareStatus)}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单支付状态：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('orderPayStatus',bizOrder.payStatus)}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单状态：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('orderStatus',bizOrder.status)}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否启用：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('enableStatus',bizOrder.enable)}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">来源：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('dataSource',bizOrder.source)}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea style="min-height: 124px;" name="remark" class="form-control detail-textarea">[[*{remark}]]</textarea>
                </div>
            </div>
            <h4 class="form-header h4">充电信息</h4>
            <div class="form-group">
                <label class="col-sm-3 control-label">充电口：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{port}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">设备上报充电结束类型：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('chargeReportStatus',bizOrder.re)}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单下发需要充电的总金额(元)：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{oa}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单剩余充电金额(元)：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{fee}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">总充电时长分钟数：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{dur}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单耗电量(KWH)：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{qty}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开始充电时间：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{srt}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">结束充电时间：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{ent}"></div>
                </div>
            </div>
        </form>
        <div class="form-control-static" style="text-align:center;">
            <button th:onclick="'javascript:closeItem()'" class="btn btn-danger" type="button">关闭</button>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        //使页面不可编辑
        function disableOcx() {
            var form = document.forms[0];
            for ( var i = 0; i < form.length; i++) {
                var element = form.elements[i];
                //部分元素可以编号 element.name 是元素自定义 name
                if (element.name != "auditEntity.auditContent"
                        && element.name != "auditEntity.auditAutograph"
                        && element.name != "auditEntity.auditTime"
                        && element.name != "auditEntity.auditState"
                        && element.name != "submitBtn"
                        && element.name != "reset"
                        && element.name != "id"
                        && element.name != "processInstanceId"
                        && element.name != "updateForm") {
                    element.disabled = "true";
                }
            }
        }
        window.onload = disableOcx;//当页面加载的时候执行此函数
        var prefix = ctx + "biz/order";

        $("input[name='successTime']").datetimepicker({
            format: "yyyy-mm-dd HH:mm:ss",
            minView: "1",
            autoclose: true
            // format: "yyyy-mm-dd",
            // minView: "month",
            // autoclose: true
        });

        $("input[name='payTime']").datetimepicker({
            format: "yyyy-mm-dd HH:mm:ss",
            minView: "1",
            autoclose: true
            // format: "yyyy-mm-dd",
            // minView: "month",
            // autoclose: true
        });
    </script>
</body>
</html>